namespace Front._1120;

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }


    private void button1_Click(object sender, EventArgs e)
    {
        openFileDialog1 =new OpenFileDialog();
        if (openFileDialog1.ShowDialog() == DialogResult.OK)
        {
           string path = openFileDialog1.FileName;
           string realname = Path.GetFileName(path);
           
           
          // 时间戳
            long time=DateTime.Now.Ticks;
            File.Copy(sourceFileName:path,destFileName:"D:" + realname,true);
            this.pictureBox1.Image = Image.FromFile(path);
        }
    }

    // private void button2_Click(object sender, EventArgs e)
    // {
    //     saveFileDialog1 =new SaveFileDialog();
    //     if (saveFileDialog1.ShowDialog() == DialogResult.OK)
    //     {
    //         string str = "hello world";
    //         File.WriteAllBytes();
    //     }
    // }
    
}